package com.wyx.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

@RestController
@RequestMapping("/product")
public class ProductController {
    @Value("${server.port}")
    private int port;
    @GetMapping("/select")
    private String select(){
        return "我是商品的查询全部 我的端口号是"+port;
    }
}
